package com.mg.plugin.cropgrow.entity;

public class CropGrowProData {
    private String plantType;

    private String date;

    private String stationNum;
    private String stationName;
    private String stationCity;

    private double et;
    private double leafAge;
    //膜温度差
    private double filmTempDiff;
    //膜当量差
    private double filmEtDiff;
    //分蘖进程
    private double tillerPro;
    //分蘖当量
    private double tillerEt;
    //障碍空壳
    private double obsGho;
    //灌浆进程
    private double groutPro;
    //灌浆当量
    private double groutEt;

    public CropGrowProData(CropGrowData data) {
        this.plantType = data.getPlantType();
        this.stationNum = data.getStationNum();
        this.stationName = data.getStationName();
        this.stationCity = data.getStationCity();
    }

    public String getPlantType() {
        return plantType;
    }

    public void setPlantType(String plantType) {
        this.plantType = plantType;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getStationNum() {
        return stationNum;
    }

    public void setStationNum(String stationNum) {
        this.stationNum = stationNum;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getStationCity() {
        return stationCity;
    }

    public void setStationCity(String stationCity) {
        this.stationCity = stationCity;
    }

    public double getEt() {
        return et;
    }

    public void setEt(double et) {
        this.et = et;
    }

    public double getLeafAge() {
        return leafAge;
    }

    public void setLeafAge(double leafAge) {
        this.leafAge = leafAge;
    }

    public double getFilmTempDiff() {
        return filmTempDiff;
    }

    public void setFilmTempDiff(double filmTempDiff) {
        this.filmTempDiff = filmTempDiff;
    }

    public double getFilmEtDiff() {
        return filmEtDiff;
    }

    public void setFilmEtDiff(double filmEtDiff) {
        this.filmEtDiff = filmEtDiff;
    }

    public double getTillerPro() {
        return tillerPro;
    }

    public void setTillerPro(double tillerPro) {
        this.tillerPro = tillerPro;
    }

    public double getTillerEt() {
        return tillerEt;
    }

    public void setTillerEt(double tillerEt) {
        this.tillerEt = tillerEt;
    }

    public double getObsGho() {
        return obsGho;
    }

    public void setObsGho(double obsGho) {
        this.obsGho = obsGho;
    }

    public double getGroutPro() {
        return groutPro;
    }

    public void setGroutPro(double groutPro) {
        this.groutPro = groutPro;
    }

    public double getGroutEt() {
        return groutEt;
    }

    public void setGroutEt(double groutEt) {
        this.groutEt = groutEt;
    }

    @Override
    public String toString() {
        String value = date + "/" + stationNum +
                "," + date +
                "," + stationNum +
                "," + stationName +
                "," + stationCity +
                "," + et +
                "," + leafAge +
                "," + tillerPro +
                "," + tillerEt +
                "," + obsGho +
                "," + groutPro +
                "," + groutEt;
        if (this.plantType.equals("A")) {
            value = value + "," + filmTempDiff +
                    "," + filmEtDiff;
        }
        return value;
    }
}
